
package com.controller;


import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.ConfigEntity;
import com.entity.GongyingshangEntity;
import com.entity.OperateLogEntity;
import com.service.ConfigService;
import com.service.OperateLogService;
import com.utils.MPUtil;
import com.utils.PageUtils;
import com.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

@RequestMapping("operatelog")
@RestController
public class OperateLogController {
	
	@Autowired
	private OperateLogService operateLogService;

	/**
     * 列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params, OperateLogEntity operateLogEntity){
        EntityWrapper<OperateLogEntity> ew = new EntityWrapper<>();
//        System.out.println("params==>"+params);
//        System.out.println("json==>"+ MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, operateLogEntity), params), params));
    	PageUtils page = operateLogService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, operateLogEntity), params), params));


        return R.ok().put("data", page);
    }
}
